import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";
import { UnifiedViteWeappTailwindcssPlugin } from 'weapp-tailwindcss/vite'
import tailwindcss from '@tailwindcss/postcss'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
      uni(),
      UnifiedViteWeappTailwindcssPlugin(
          {
            rem2rpx:true,
          }
      )
  ],
  css:{
    postcss:{
      plugins:[
          tailwindcss()
      ]
    }
  }
});
